Skip to content

Conversation

@swissspidy
Copy link
Member

Comment on lines -2194 to -2196
if ( false === $modes ) {
$modes = [];
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was never false

Comment on lines -2158 to -2162
foreach ( [] as $arg ) {
if ( isset( $assoc_args[ $arg ] ) ) {
$args[ $arg ] = $assoc_args[ $arg ];
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looping through an empty array does nothing

@codecov
Copy link

codecov bot commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/DB_Command.php 92.85% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy marked this pull request as ready for review July 3, 2025 15:06
@swissspidy swissspidy requested a review from a team as a code owner July 3, 2025 15:06
swissspidy and others added 2 commits July 7, 2025 23:36
Co-authored-by: Alain Schlesser <[email protected]>
Co-authored-by: Alain Schlesser <[email protected]>
@swissspidy swissspidy requested a review from schlessera July 8, 2025 09:14
@mrsdizzie
Copy link
Member

This looks ok to me!

@swissspidy swissspidy merged commit cf0dba1 into main Jul 24, 2025
30 of 43 checks passed
@swissspidy swissspidy deleted the try/phpstan branch July 24, 2025 10:59
@swissspidy swissspidy added this to the 2.1.4 milestone Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants